<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class SeekController extends Controller
{
    public function index(Request $Request)
    {
    	$goodsname = $Request->input('goodsname');
    	$list = DB::table('goods')->where('goodsname','like',"%{$goodsname}%")->get();
    	if ( !$list->all()==[] ) {
    		return view('home.foot.foot',['list'=>$list]);
    	}else{
    		return back();
    	}
    	
    }
}
